/*
 * Copyright (C), 2002-2016, 苏宁易购电子商务有限公司
 * FileName: MemberInfoVo.java
 * Author:   15050536
 * Date:     2016年12月6日 下午8:15:43
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.suning.sawp.intf.tm.vo;

import java.io.Serializable;

/**
 * 接待的会员信息
 *
 * @author 15050536 石键平
 */
public class MemberInfoVo implements Serializable,Comparable<MemberInfoVo>{

	/**
	 */
	private static final long serialVersionUID = 7559905677702897686L;

	/**
	 * 会员名称
	 */
	private String name;
	
	/**
	 * 订单笔数
	 */
	private String num;
	
	/**
	 * 性别
	 */
	private String gender;
	
	/**
	 * 老客户人数
	 */
	private String oldMemberNum;
	
	/**
	 * 总客户人数
	 */
	private String allMemberNum;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getOldMemberNum() {
		return oldMemberNum;
	}

	public void setOldMemberNum(String oldMemberNum) {
		this.oldMemberNum = oldMemberNum;
	}

	public String getAllMemberNum() {
		return allMemberNum;
	}

	public void setAllMemberNum(String allMemberNum) {
		this.allMemberNum = allMemberNum;
	}

	@Override
	public int compareTo(MemberInfoVo o) {
		if(o == null){
			return -1;
		}
		int f1 = Integer.parseInt(this.getNum());
		int f2 = Integer.parseInt(o.getNum());
		if (f1 > f2) {
			return -1;
		}
		if (f1 < f2) {
			return 1;
		}
		return 0;
	}
	
	@Override
	public boolean equals(Object obj) {
	    return super.equals(obj);
	}

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
